//
// Created by Administrator on 2021/8/8.
//

#ifndef STRUCTVIEW_STRUCTVIEW_H
#define STRUCTVIEW_STRUCTVIEW_H

#include "ViewInterface.h"
#include "SimpileView.h"

#define VStruct(view_name, struct_type, ...) \
class view_name {                                                        \
private:                                                                 \
    auto CreateViews(struct_type& parent) -> details::ViewInterface* {   \
        return __def_simple_view_with_parent(struct_type, __VA_ARGS__);  \
    }                                                                    \
};

#endif //STRUCTVIEW_STRUCTVIEW_H
